/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ve.usb.crm;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

/**
 *
 * @author vanessa
 */
public class FCambiarClave extends org.apache.struts.action.ActionForm {

    public FCambiarClave() {
        super();
        viejaPassword = "";
        password = "";
        passwordConfirmacion = "";

    }

    public void reset(ActionMapping mapping, HttpServletRequest request) {
        viejaPassword = "";
        password = "";
        passwordConfirmacion = "";

    }

    public static FCambiarClave clear(ActionMapping mapping, HttpServletRequest request) {
        HttpSession sess = request.getSession();
        FCambiarClave fFCambiarEstadoTarea = (FCambiarClave) sess.getAttribute("FCambiarClave");
        if (fFCambiarEstadoTarea == null) {
            fFCambiarEstadoTarea = new FCambiarClave();
            sess.setAttribute("FCambiarClave", fFCambiarEstadoTarea);
        } else {
            fFCambiarEstadoTarea.reset(mapping, request);
        }
        return fFCambiarEstadoTarea;
    }
    private String viejaPassword;
    private String password;
    private String passwordConfirmacion;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPasswordConfirmacion() {
        return passwordConfirmacion;
    }

    public void setPasswordConfirmacion(String passwordConfirmacion) {
        this.passwordConfirmacion = passwordConfirmacion;
    }

    public String getViejaPassword() {
        return viejaPassword;
    }

    public void setViejaPassword(String viejaPassword) {
        this.viejaPassword = viejaPassword;
    }
}
